<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>企业文化 - 做真正的奋斗者</title>
    <!-- 引入外部资源 -->
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-src/dist/css/layui.css">
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.14/dist/vue.js"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    
    <!-- Tailwind 配置 -->
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#1E40AF', // 深蓝主色调，代表专业和信任
                        secondary: '#F97316', // 橙色辅助色，代表活力和奋斗
                        neutral: '#1F2937', // 深色文本
                        light: '#F3F4F6', // 浅色背景
                    },
                    fontFamily: {
                        sans: ['Inter', 'system-ui', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .text-shadow {
                text-shadow: 0 2px 4px rgba(0,0,0,0.1);
            }
            .transition-transform {
                transition-property: transform;
                transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
                transition-duration: 300ms;
            }
            .hover-lift {
                @apply hover:-translate-y-1 transition-all duration-300;
            }
            .card-shadow {
                box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            }
        }
    </style>
</head>
<body class="bg-gray-50 text-neutral">
    <!-- 导航栏 -->
    <header id="navbar" class="fixed w-full z-50 transition-all duration-300 bg-white/90 backdrop-blur-sm shadow-sm">
        <div class="container mx-auto px-4 py-3 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <i class="fa fa-rocket text-primary text-2xl"></i>
                <span class="text-xl font-bold text-primary">奋斗者文化</span>
            </div>
            <nav class="hidden md:flex space-x-8">
                <a href="#culture" class="text-gray-600 hover:text-primary transition-colors">企业精神</a>
                <a href="#motto" class="text-gray-600 hover:text-primary transition-colors">座右铭</a>
                <a href="#strugglers" class="text-gray-600 hover:text-primary transition-colors">奋斗者故事</a>
                <a href="#commitment" class="text-gray-600 hover:text-primary transition-colors">我的承诺</a>
            </nav>
            <button class="md:hidden text-gray-600" id="mobileMenuBtn">
                <i class="fa fa-bars text-xl"></i>
            </button>
        </div>
        <!-- 移动端菜单 -->
        <div id="mobileMenu" class="hidden md:hidden bg-white border-t">
            <div class="container mx-auto px-4 py-2 flex flex-col space-y-3">
                <a href="#culture" class="py-2 text-gray-600 hover:text-primary transition-colors">企业精神</a>
                <a href="#motto" class="py-2 text-gray-600 hover:text-primary transition-colors">座右铭</a>
                <a href="#strugglers" class="py-2 text-gray-600 hover:text-primary transition-colors">奋斗者故事</a>
                <a href="#commitment" class="py-2 text-gray-600 hover:text-primary transition-colors">我的承诺</a>
            </div>
        </div>
    </header>

    <!-- 主内容区 -->
    <main id="app" class="pt-16">
        <!-- 英雄区 -->
        <section class="relative bg-gradient-to-r from-primary to-primary/80 text-white py-20 md:py-32 overflow-hidden">
            <div class="absolute inset-0 opacity-10">
                <div class="absolute inset-0 bg-[url('https://picsum.photos/id/1076/1920/1080')] bg-cover bg-center"></div>
            </div>
            <div class="container mx-auto px-4 relative z-10">
                <div class="max-w-3xl mx-auto text-center">
                    <h1 class="text-[clamp(2rem,5vw,4rem)] font-bold leading-tight mb-6 text-shadow animate-fade-in">
                        我要做真正的奋斗者
                    </h1>
                    <p class="text-[clamp(1rem,2vw,1.25rem)] mb-8 opacity-90">
                        我相信，奋斗不仅是一种精神，更是一种行动；
                        不仅是一种态度，更是一种信仰。
                    </p>
                    <a href="#culture" class="inline-block bg-secondary hover:bg-secondary/90 text-white font-medium py-3 px-8 rounded-lg transition-all duration-300 hover-lift">
                        不断拼搏努力
                    </a>
                </div>
            </div>
            <div class="absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-gray-50 to-transparent"></div>
        </section>

        <!-- 企业精神 -->
        <section id="culture" class="py-16 md:py-24 bg-white">
            <div class="container mx-auto px-4">
                <div class="text-center mb-16">
                    <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-neutral mb-4">我的企业精神</h2>
                    <p class="text-gray-600 max-w-2xl mx-auto">
                        成为受人尊敬的世界级新能源企业
                    </p>
                </div>
                
                <div class="grid grid-cols-1 md:grid-cols-3 gap-8">
                    <div class="bg-light rounded-xl p-8 card-shadow hover-lift">
                        <div class="w-14 h-14 bg-primary/10 rounded-full flex items-center justify-center mb-6">
                            <i class="fa fa-lightbulb-o text-primary text-2xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-4">创新进取</h3>
                        <p class="text-gray-600">
                            勇于突破常规，不断探索未知，以创新思维驱动发展，在变革中寻找机遇，在挑战中实现超越。
                        </p>
                    </div>
                    
                    <div class="bg-light rounded-xl p-8 card-shadow hover-lift">
                        <div class="w-14 h-14 bg-primary/10 rounded-full flex items-center justify-center mb-6">
                            <i class="fa fa-users text-primary text-2xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-4">团结协作</h3>
                        <p class="text-gray-600">
                            我坚信团队的力量大于个体之和，相互支持，彼此成就，在协作中创造更大价值，实现共同目标。
                        </p>
                    </div>
                    
                    <div class="bg-light rounded-xl p-8 card-shadow hover-lift">
                        <div class="w-14 h-14 bg-primary/10 rounded-full flex items-center justify-center mb-6">
                            <i class="fa fa-line-chart text-primary text-2xl"></i>
                        </div>
                        <h3 class="text-xl font-bold mb-4">追求卓越</h3>
                        <p class="text-gray-600">
                            不满足于现状，不断挑战自我，精益求精，以高标准要求自己，在每一个细节上追求完美。
                        </p>
                    </div>
                </div>
                
                <div class="mt-16 bg-primary/5 rounded-2xl p-8 md:p-12">
                    <div class="flex flex-col md:flex-row items-center gap-8">
                        <div class="md:w-1/2">
                            <h3 class="text-2xl font-bold mb-4">我的使命</h3>
                            <p class="text-gray-600 mb-6">
                                我致力于为客户创造价值，为员工搭建平台，为社会贡献力量。通过持续奋斗，
                                我不仅追求商业成功，更注重社会责任，努力成为行业标杆和社会楷模。
                            </p>
                            <p class="text-gray-600">
                                在奋斗的道路上，我始终保持初心，坚守诚信，勇于担当，用实际行动诠释
                                什么是真正的奋斗者精神。
                            </p>
                        </div>
                        <div class="md:w-1/2">
                            <img src="https://picsum.photos/id/1071/800/600" alt="团队协作场景" class="rounded-lg w-full h-auto shadow-lg">
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- 座右铭 -->
        <section id="motto" class="py-16 md:py-24 bg-light">
            <div class="container mx-auto px-4">
                <div class="text-center mb-16">
                    <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-neutral mb-4">我的座右铭</h2>
                    <p class="text-gray-600 max-w-2xl mx-auto">
                        这些话语激励着我不断前进，成为我行动的指南
                    </p>
                </div>
                
                <div class="max-w-4xl mx-auto">
                    <div class="relative">
                        <div class="absolute left-0 top-0 text-primary/20 text-6xl">
                            <i class="fa fa-quote-left"></i>
                        </div>
                        <div class="bg-white rounded-2xl p-8 md:p-12 ml-6 card-shadow">
                            <p class="text-[clamp(1.25rem,3vw,1.75rem)] font-medium text-neutral italic leading-relaxed mb-6">
                                奋斗者不一定会成功，但成功者一定是奋斗者。
                                真正的奋斗不是一时的激情，而是长久的坚持；
                                不是表面的忙碌，而是内心的执着。
                            </p>
                            <p class="text-right text-gray-500">—— 我的信念</p>
                        </div>
                    </div>
                    
                    <div class="grid grid-cols-1 md:grid-cols-2 gap-8 mt-12">
                        <div class="bg-white p-6 rounded-xl card-shadow hover-lift">
                            <p class="text-gray-700 mb-2"><i class="fa fa-check-circle text-secondary mr-2"></i>今日事，今日毕</p>
                            <p class="text-gray-500 text-sm">不拖延，不推诿，高效完成每一项任务</p>
                        </div>
                        
                        <div class="bg-white p-6 rounded-xl card-shadow hover-lift">
                            <p class="text-gray-700 mb-2"><i class="fa fa-check-circle text-secondary mr-2"></i>细节决定成败</p>
                            <p class="text-gray-500 text-sm">注重细节，精益求精，追求卓越品质</p>
                        </div>
                        
                        <div class="bg-white p-6 rounded-xl card-shadow hover-lift">
                            <p class="text-gray-700 mb-2"><i class="fa fa-check-circle text-secondary mr-2"></i>团结就是力量</p>
                            <p class="text-gray-500 text-sm">互帮互助，协同作战，共创团队辉煌</p>
                        </div>
                        
                        <div class="bg-white p-6 rounded-xl card-shadow hover-lift">
                            <p class="text-gray-700 mb-2"><i class="fa fa-check-circle text-secondary mr-2"></i>持续学习，不断进步</p>
                            <p class="text-gray-500 text-sm">保持空杯心态，与时俱进，永不落伍</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- 奋斗者故事 -->
        <section id="strugglers" class="py-16 md:py-24 bg-white">
            <div class="container mx-auto px-4">
                <div class="text-center mb-16">
                    <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-neutral mb-4">奋斗者故事</h2>
                    <p class="text-gray-600 max-w-2xl mx-auto">
                        他们用行动诠释着奋斗者的精神，是学习的榜样
                    </p>
                </div>
                
                <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
                    <!-- 奋斗者 1 -->
                    <div class="bg-light rounded-xl overflow-hidden card-shadow hover-lift">
                        <img src="https://picsum.photos/id/1012/600/400" alt="张晓明 - 技术部主管" class="w-full h-56 object-cover">
                        <div class="p-6">
                            <h3 class="text-xl font-bold mb-2">张晓明</h3>
                            <p class="text-gray-500 mb-4">技术部主管 · 5年工龄</p>
                            <p class="text-gray-600 mb-4">
                                从一名普通程序员成长为技术主管，他带领团队攻克了无数技术难题，
                                连续三年获得公司"最佳奋斗者"称号。
                            </p>
                            <div class="text-primary">
                                <i class="fa fa-quote-left mr-1"></i>
                                <span class="text-sm italic">奋斗让我找到了人生的价值和方向</span>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 奋斗者 2 -->
                    <div class="bg-light rounded-xl overflow-hidden card-shadow hover-lift">
                        <img src="https://picsum.photos/id/1027/600/400" alt="李娜 - 销售部经理" class="w-full h-56 object-cover">
                        <div class="p-6">
                            <h3 class="text-xl font-bold mb-2">李娜</h3>
                            <p class="text-gray-500 mb-4">销售部经理 · 7年工龄</p>
                            <p class="text-gray-600 mb-4">
                                从零开始建立销售团队，创造了连续12个季度业绩增长的记录，
                                用专业和坚持赢得了客户的信任。
                            </p>
                            <div class="text-primary">
                                <i class="fa fa-quote-left mr-1"></i>
                                <span class="text-sm italic">每一次拒绝都是成长的机会，每一次成功都是奋斗的见证</span>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 奋斗者 3 -->
                    <div class="bg-light rounded-xl overflow-hidden card-shadow hover-lift">
                        <img src="https://picsum.photos/id/1025/600/400" alt="王建国 - 生产车间主任" class="w-full h-56 object-cover">
                        <div class="p-6">
                            <h3 class="text-xl font-bold mb-2">王建国</h3>
                            <p class="text-gray-500 mb-4">生产车间主任 · 10年工龄</p>
                            <p class="text-gray-600 mb-4">
                                从一线工人到车间主任，他熟悉生产的每一个环节，
                                带领团队实现了生产效率提升30%的突破。
                            </p>
                            <div class="text-primary">
                                <i class="fa fa-quote-left mr-1"></i>
                                <span class="text-sm italic">脚踏实地，精益求精，平凡的岗位也能创造不平凡的价值</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="mt-12 text-center">
                    <button class="layui-btn layui-btn-primary border-primary text-primary hover:bg-primary hover:text-white transition-colors py-2 px-6 rounded-lg">
                        查看更多奋斗者故事
                    </button>
                </div>
            </div>
        </section>

        <!-- 我们的承诺 -->
        <section id="commitment" class="py-16 md:py-24 bg-primary/5">
            <div class="container mx-auto px-4">
                <div class="text-center mb-16">
                    <h2 class="text-[clamp(1.5rem,3vw,2.5rem)] font-bold text-neutral mb-4">我要做真正的奋斗者</h2>
                    <p class="text-gray-600 max-w-2xl mx-auto">
                        这是我对自己的承诺，也是我对未来的期许
                    </p>
                </div>
                
                <div class="max-w-4xl mx-auto">
                    <div class="bg-white rounded-2xl p-8 md:p-12 card-shadow">
                        <form id="commitmentForm" class="space-y-6">
                            <div class="text-center mb-8">
                                <h3 class="text-xl font-bold mb-2">我承诺</h3>
                                <p class="text-gray-500">践行奋斗者精神，为团队和公司的发展贡献自己的力量</p>
                            </div>
                            
                            <div class="space-y-4">
                                <label class="flex items-start">
                                    <input type="checkbox" class="mt-1 mr-3" checked>
                                    <span>以积极的态度面对工作中的挑战和困难</span>
                                </label>
                                
                                <label class="flex items-start">
                                    <input type="checkbox" class="mt-1 mr-3" checked>
                                    <span>不断学习新知识、新技能，提升自身专业能力</span>
                                </label>
                                
                                <label class="flex items-start">
                                    <input type="checkbox" class="mt-1 mr-3" checked>
                                    <span>与团队成员精诚合作，共同完成目标任务</span>
                                </label>
                                
                                <label class="flex items-start">
                                    <input type="checkbox" class="mt-1 mr-3" checked>
                                    <span>坚守职业道德，做到诚信正直，廉洁自律</span>
                                </label>
                                
                                <label class="flex items-start">
                                    <input type="checkbox" class="mt-1 mr-3" checked>
                                    <span>以客户为中心，为客户创造最大价值</span>
                                </label>
                            </div>
                            
                            <div>
                                <label class="block mb-2 font-medium">我的奋斗宣言</label>
                                <textarea class="layui-textarea w-full rounded-lg border-gray-300 focus:border-primary focus:ring focus:ring-primary/20 transition-all" rows="4" placeholder="请输入你的奋斗宣言...">我将以饱满的热情投入工作，用实际行动诠释奋斗者精神，为实现个人价值和公司愿景而不懈努力！</textarea>
                            </div>
                            
                            <div class="text-center">
                                <button type="button" class="bg-secondary hover:bg-secondary/90 text-white font-medium py-3 px-8 rounded-lg transition-all duration-300 hover-lift" @click="showCommitmentModal">
                                    确认我的承诺
                                </button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </section>

        <!-- 号召行动 -->
        <section class="py-16 bg-primary text-white">
            <div class="container mx-auto px-4 text-center">
                <h2 class="text-[clamp(1.5rem,3vw,2.25rem)] font-bold mb-6">加入我们，成为真正的奋斗者</h2>
                <p class="max-w-2xl mx-auto mb-8 text-white/80">
                    我期待与更多志同道合的人一起，用奋斗书写精彩人生，用拼搏创造美好未来
                </p>
                <div class="flex flex-col sm:flex-row justify-center gap-4">
                    <a href="#" class="bg-white text-primary hover:bg-gray-100 font-medium py-3 px-8 rounded-lg transition-all duration-300 hover-lift">
                        加入我们
                    </a>
                    <a href="#" class="bg-transparent border-2 border-white text-white hover:bg-white/10 font-medium py-3 px-8 rounded-lg transition-all duration-300 hover-lift">
                        了解更多
                    </a>
                </div>
            </div>
        </section>
    </main>

    <!-- 页脚 -->
    <footer class="bg-neutral text-white py-12">
        <div class="container mx-auto px-4">
            <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
                <div>
                    <div class="flex items-center space-x-2 mb-4">
                        <i class="fa fa-rocket text-secondary text-2xl"></i>
                        <span class="text-xl font-bold">奋斗者文化</span>
                    </div>
                    <p class="text-gray-400 mb-4">
                        我致力于打造以奋斗者为本的企业文化，
                        让每一位奋斗者都能实现自己的价值。
                    </p>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-weixin text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-weibo text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-400 hover:text-white transition-colors">
                            <i class="fa fa-linkedin text-xl"></i>
                        </a>
                    </div>
                </div>
                
                <div>
                    <h4 class="text-lg font-medium mb-4">快速链接</h4>
                    <ul class="space-y-2">
                        <li><a href="#culture" class="text-gray-400 hover:text-white transition-colors">企业精神</a></li>
                        <li><a href="#motto" class="text-gray-400 hover:text-white transition-colors">座右铭</a></li>
                        <li><a href="#strugglers" class="text-gray-400 hover:text-white transition-colors">奋斗者故事</a></li>
                        <li><a href="#commitment" class="text-gray-400 hover:text-white transition-colors">我的承诺</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="text-lg font-medium mb-4">相关资源</h4>
                    <ul class="space-y-2">
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">企业文化手册</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">员工行为准则</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">奋斗者表彰制度</a></li>
                        <li><a href="#" class="text-gray-400 hover:text-white transition-colors">学习与发展</a></li>
                    </ul>
                </div>
                
                <div>
                    <h4 class="text-lg font-medium mb-4">联系我们</h4>
                    <ul class="space-y-2">
                        <li class="flex items-start">
                            <i class="fa fa-map-marker text-secondary mt-1 mr-3"></i>
                            <span class="text-gray-400">北京市朝阳区奋斗大厦15层</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-phone text-secondary mr-3"></i>
                            <span class="text-gray-400">010-12345678</span>
                        </li>
                        <li class="flex items-center">
                            <i class="fa fa-envelope text-secondary mr-3"></i>
                            <span class="text-gray-400">culture@example.com</span>
                        </li>
                    </ul>
                </div>
            </div>
            
            <div class="border-t border-gray-700 mt-10 pt-6 text-center text-gray-500">
                <p>© 2023 奋斗者文化. 保留所有权利.</p>
            </div>
        </div>
    </footer>

    <!-- 承诺确认弹窗 -->
    <div id="commitmentModal" class="fixed inset-0 z-50 flex items-center justify-center hidden">
        <div class="absolute inset-0 bg-black/50 backdrop-blur-sm"></div>
        <div class="relative bg-white rounded-xl p-8 max-w-md w-full mx-4 card-shadow transform transition-all">
            <div class="text-center">
                <div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mx-auto mb-6">
                    <i class="fa fa-check text-green-500 text-2xl"></i>
                </div>
                <h3 class="text-xl font-bold mb-2">承诺已确认</h3>
                <p class="text-gray-600 mb-6">
                    感谢你对奋斗者精神的认同和承诺，
                    让我们一起努力，成为真正的奋斗者！
                </p>
                <button id="closeModal" class="bg-primary hover:bg-primary/90 text-white font-medium py-2 px-6 rounded-lg transition-all duration-300">
                    确定
                </button>
            </div>
        </div>
    </div>

    <!-- 引入Layui JS -->
    <script src="https://cdn.jsdelivr.net/npm/layui-src/dist/layui.js"></script>
    
    <script>
        // Vue实例
        new Vue({
            el: '#app',
            methods: {
                // 显示承诺确认弹窗
                showCommitmentModal() {
                    const modal = document.getElementById('commitmentModal');
                    modal.classList.remove('hidden');
                    // 添加动画效果
                    setTimeout(() => {
                        modal.querySelector('div:nth-child(2)').classList.add('scale-100');
                        modal.querySelector('div:nth-child(2)').classList.remove('scale-95');
                    }, 10);
                }
            }
        });
        
        // 页面加载完成后初始化
        document.addEventListener('DOMContentLoaded', function() {
            // 移动端菜单切换
            const mobileMenuBtn = document.getElementById('mobileMenuBtn');
            const mobileMenu = document.getElementById('mobileMenu');
            
            mobileMenuBtn.addEventListener('click', function() {
                mobileMenu.classList.toggle('hidden');
            });
            
            // 关闭承诺弹窗
            const closeModal = document.getElementById('closeModal');
            const commitmentModal = document.getElementById('commitmentModal');
            
            closeModal.addEventListener('click', function() {
                commitmentModal.classList.add('hidden');
            });
            
            // 点击弹窗外部关闭弹窗
            commitmentModal.addEventListener('click', function(e) {
                if (e.target === commitmentModal) {
                    commitmentModal.classList.add('hidden');
                }
            });
            
            // 导航栏滚动效果
            const navbar = document.getElementById('navbar');
            window.addEventListener('scroll', function() {
                if (window.scrollY > 50) {
                    navbar.classList.add('py-2', 'shadow');
                    navbar.classList.remove('py-3');
                } else {
                    navbar.classList.add('py-3');
                    navbar.classList.remove('py-2', 'shadow');
                }
            });
            
            // 平滑滚动
            document.querySelectorAll('a[href^="#"]').forEach(anchor => {
                anchor.addEventListener('click', function (e) {
                    e.preventDefault();
                    
                    // 关闭移动菜单（如果打开）
                    mobileMenu.classList.add('hidden');
                    
                    const targetId = this.getAttribute('href');
                    const targetElement = document.querySelector(targetId);
                    
                    if (targetElement) {
                        window.scrollTo({
                            top: targetElement.offsetTop - 80,
                            behavior: 'smooth'
                        });
                    }
                });
            });
            
            // 初始化Layui组件
            layui.use(['element', 'form'], function() {
                const element = layui.element;
                const form = layui.form;
                // 可以在这里添加Layui组件的初始化代码
            });
            
            // 添加滚动动画
            const animateOnScroll = function() {
                const elements = document.querySelectorAll('.card-shadow');
                
                elements.forEach(element => {
                    const elementTop = element.getBoundingClientRect().top;
                    const elementVisible = 150;
                    
                    if (elementTop < window.innerHeight - elementVisible) {
                        element.classList.add('opacity-100');
                        element.classList.remove('opacity-0', 'translate-y-4');
                    }
                });
            };
            
            // 初始设置
            document.querySelectorAll('.card-shadow').forEach(el => {
                el.classList.add('transition-all', 'duration-700', 'opacity-0', 'translate-y-4');
            });
            
            // 页面加载时执行一次
            animateOnScroll();
            
            // 滚动时执行
            window.addEventListener('scroll', animateOnScroll);
        });
    </script>
</body>
</html>
